#include <stdio.h>
#include <malloc.h>
typedef struct{
     int data;
     struct Node *next;
 }LNode,*LinkList;
 
 LinkList List_HeadInsert(LinkList L){
 	LNode *s;int x;
 	L=(LinkList)malloc(sizeof(LNode));
 	L->next=NULL;
 	scanf("%d",&x);
 	while(x!=9999){
 		s=(LNode*)malloc(sizeof(LNode));
 		s->data=x;
 		s->next=L->next;
 		L->next=s;
 		scanf("%d",x);
	 }
	 return L;
 }